package com.lonwin.inspectionmanagement.mvp.model.entity.bean;

import android.os.Parcel;
import android.os.Parcelable;

import java.util.List;

/**
 * Author: zhangjing
 * DATA:2018/11/24 下午3:12
 * DESC:
 * email:zhangjingworkmol@163.com
 */
public class ProblemBean implements Parcelable {

    /**
     * children : []
     * className : 12
     * clickType : 0
     * dllName : ffsz
     * moduleID : 6169
     * moduleName : 非法设障
     * promptKey : 0
     * sourceId : 0
     * target :
     */

    private String className;
    private int clickType;
    private String dllName;
    private int moduleID;
    private String moduleName;
    private String promptKey;
    private int sourceId;
    private String target;
    private List<String> children;

    public String getClassName() {
        return className;
    }

    public void setClassName(String className) {
        this.className = className;
    }

    public int getClickType() {
        return clickType;
    }

    public void setClickType(int clickType) {
        this.clickType = clickType;
    }

    public String getDllName() {
        return dllName;
    }

    public void setDllName(String dllName) {
        this.dllName = dllName;
    }

    public int getModuleID() {
        return moduleID;
    }

    public void setModuleID(int moduleID) {
        this.moduleID = moduleID;
    }

    public String getModuleName() {
        return moduleName;
    }

    public void setModuleName(String moduleName) {
        this.moduleName = moduleName;
    }

    public String getPromptKey() {
        return promptKey;
    }

    public void setPromptKey(String promptKey) {
        this.promptKey = promptKey;
    }

    public int getSourceId() {
        return sourceId;
    }

    public void setSourceId(int sourceId) {
        this.sourceId = sourceId;
    }

    public String getTarget() {
        return target;
    }

    public void setTarget(String target) {
        this.target = target;
    }

    public List<?> getChildren() {
        return children;
    }

    public void setChildren(List<String> children) {
        this.children = children;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(this.className);
        dest.writeInt(this.clickType);
        dest.writeString(this.dllName);
        dest.writeInt(this.moduleID);
        dest.writeString(this.moduleName);
        dest.writeString(this.promptKey);
        dest.writeInt(this.sourceId);
        dest.writeString(this.target);
        dest.writeStringList(this.children);
    }

    public ProblemBean() {
    }

    protected ProblemBean(Parcel in) {
        this.className = in.readString();
        this.clickType = in.readInt();
        this.dllName = in.readString();
        this.moduleID = in.readInt();
        this.moduleName = in.readString();
        this.promptKey = in.readString();
        this.sourceId = in.readInt();
        this.target = in.readString();
        this.children = in.createStringArrayList();
    }

    public static final Parcelable.Creator<ProblemBean> CREATOR = new Parcelable.Creator<ProblemBean>() {
        @Override
        public ProblemBean createFromParcel(Parcel source) {
            return new ProblemBean(source);
        }

        @Override
        public ProblemBean[] newArray(int size) {
            return new ProblemBean[size];
        }
    };
}
